﻿<%@ WebHandler Language="C#" Class="NameEdte" %>

using System;
using System.Web;
using BLL;
public class NameEdte : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        string id, tno, name, num, price;
        id = context.Request.Params["aid"].ToString().Trim();
        tno = context.Request.Params["atno"].ToString().Trim();
        name = context.Request.Params["aname"].ToString().Trim();
        num = context.Request.Params["anum"].ToString().Trim();
        price = context.Request.Params["aprice"].ToString().Trim();

        string err = "ok";
        new WayBillService().EditName(id, tno, name, num, price, ref err);

        context.Response.Write(err);
      
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}